<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Examples</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<link href="" rel="stylesheet">
	<script>
		var str = 'dja sid21 3hoi h31  oh423'
		var re = /\d/g;   //\d 转意表示数字 ／g表示全局 --global。+表示匹配
		var re = /\d+/g;   // + 表示若干
		alert(str.match(re));

		var re2 = /a/g;
		alert(str.replace(re,'换'))
	</script>
</head>
<body>
	<li><a href="index.html">index.html</a></li>
	<li><a href="index2.html">index2.html</a></li>
	<li><a href="index3.html">index3.html</a></li>
	<li><a href="index4.html">index4.html</a></li>
	<li><a href="index5.html">index5.html</a></li>
</body>
</html>